package chainOfComand;

import java.util.HashMap;
import java.util.Map;

public class Principal {

	public static void main(String[] args) {
		CommandChain commandChain = new CommandChain();
		commandChain.addCommand(new SMSCommand());
		commandChain.addCommand(new MailCommand());
		Map<String, String> parametros1 = new HashMap<String, String>();
		parametros1.put("metodo", "sms");
		parametros1.put("usuario", "test");
		commandChain.runCommand("NotifyUser", parametros1);
		Map<String, String> parametros2 = new HashMap<String, String>();
		parametros2.put("metodo", "mail");
		parametros2.put("usuario", "administrador");
		commandChain.runCommand("NotifyUser", parametros2);
	}
}
